home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld Secrets (3rd Edition)
/
Macworld Bonus CD, 6:96.iso
/
Archive Data
/
AOL Installer.sea
/
AOL Installer
/
Install AOL v2.6 w_Browser
/
Online Files
/
Check Modem
< prev
next >
Wrap
Text File
|
1995-07-10
|
2KB
|
91 lines
!*****************************************************************************
! C O P Y R I G H T A N D C O N F I D E N T I A L I T Y N O T I C E
!*****************************************************************************
!
! Copyright © 1987-1994 America Online, Inc. All rights reserved.
! This software contains valuable confidential and proprietary
! information of America Online, Inc. and is subject to applicable
! licensing agreements. Unauthorized reproduction, transmission or
! distribution of this file and its contents is a violation of
! applicable laws.
!
! A M E R I C A O N L I N E C O N F I D E N T I A L
!
!*****************************************************************************
! - Check Modem capability ccl
! - by L. Matthew Day
! Adding pauses before and after "+++" command. - RG, 1/21/94
!
CheckPort "PortTaken"
CanBtn "PortTaken"
ChrDelay 2
SerReset 300 0 8 1 { I assume a minimum of a 300 baud modem }
Pause 30
Flush
Pause 210 { Pause for 2 sec min gap }
Xmit "+++" { Get the modems attention}
Pause 210 { Pause for 2 sec min gap }
!
ClrMchStr
MatchStr "TestAutoReliable" "OK"
MatchStr "TestAutoReliable" ">"
!
Xmit "AT&F\\N3&K3E0Q0V1X4&C1&D0\0D"
Wait 200
!
Jump "TestErrorCorrectingModem"
-Label TestAutoReliable
Flush
!
ClrMchStr
MatchStr "GotAutoReliable" "OK"
MatchStr "GotAutoReliable" ">"
!
Xmit "AT&F\\N3&K0%C0E0Q0V1X4&C1&D0\0D"
Wait 200
-Label TestErrorCorrectingModem
ClrMchStr
MatchStr "TestErrorCorrecting" "OK"
MatchStr "TestErrorCorrecting" ">"
!
Xmit "AT&F&C1&D0&K3&Q5Q0E0V1X4\0D"
Wait 200
!
Jump "TestExtendedModem"
-Label TestErrorCorrecting
Flush
!
ClrMchStr
MatchStr "GotErrorCorrecting" "OK"
MatchStr "GotErrorCorrecting" ">"
!
Xmit "AT&F&C1&D0&K0&Q5Q0E0V1X4\0D"
Wait 200
!
-Label TestExtendedModem
Flush
!
ClrMchStr
MatchStr "GotExtendedModem" "OK"
MatchStr "GotExtendedModem" ">"
!
Xmit "AT&FE0Q0V1X4&C1&D0\0D"
Wait 200
!
Exit 4 { Nothing Special about this modem}
-Label GotExtendedModem
Exit 3
-Label GotErrorCorrecting
Exit 2
-Label GotAutoReliable
Exit 1
-Label PortTaken
Exit -111
!
*-Label 1
*Exit 0
!
###